package com.demo.mappers;
import org.apache.ibatis.annotations.Param;



/**
 * @Description:咨询师表:mapper
 * @Date:2025-03-04
 * @author：author
*/
public interface CounselorInfoMapper<T,P> extends BaseMapper {


	/**
	 * 根据CounselorId查询
	 */
	 T selectByCounselorId(@Param("counselorId") Long counselorId);

	/**
	 * 根据CounselorId更新
	 */
	 Integer updateByCounselorId(@Param("bean")T t, @Param("counselorId") Long counselorId);

	/**
	 * 根据CounselorId删除
	 */
	 Integer deleteByCounselorId(@Param("counselorId") Long counselorId);


	/**
	 * 根据UserId查询
	 */
	 T selectByUserId(@Param("userId") Long userId);

	/**
	 * 根据UserId更新
	 */
	 Integer updateByUserId(@Param("bean")T t, @Param("userId") Long userId);

	/**
	 * 根据UserId删除
	 */
	 Integer deleteByUserId(@Param("userId") Long userId);

}